package com.niodata.dp.core.usermgr.model.result;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.annotation.JsonView;
import com.niodata.dp.core.usermgr.model.GroupInfo;
import com.niodata.dp.core.usermgr.model.UserInfo;
import com.niodata.dp.core.usermgr.view.AdminUsersView;
import java.util.List;

@JsonInclude(Include.NON_NULL)
public class UserResult extends UserInfo {

  private List<GroupInfo> groups;

  @JsonView(value = {AdminUsersView.class})
  public List<GroupInfo> getGroups() {
    return groups;
  }

  public void setGroups(List<GroupInfo> groups) {
    this.groups = groups;
  }

}
